using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace XNALibrary.Utils
{
    public class ShaderModel
    {
        public static bool Check(ShaderProfile shaderProfile)
        {
            bool result = true;

            foreach (GraphicsAdapter adapter in GraphicsAdapter.Adapters)
            {
                // Get the capabilities of the hardware device.
                GraphicsDeviceCapabilities caps = adapter.GetCapabilities(DeviceType.Hardware);
                if (caps.MaxPixelShaderProfile < shaderProfile)
                {
                    result = false;
                }
            }

            return result;
        }
    }
}
